package com.margo.project.dubbo.service;

import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Component;

import com.margo.project.base.model.ExternalUser;
import com.margo.project.base.service.ExternalUserService;

@DubboService(interfaceClass = ExternalUserService.class)
@Component
public class ExternalUserServiceImpl implements ExternalUserService{

	@Override
	public ExternalUser getExternalUser(String name) {
		ExternalUser externalUser=new ExternalUser();
		externalUser.setId(1);
		externalUser.setUsername(name);
		return externalUser;
	}

	@Override
	public ExternalUser getFlowExternalUser(String name) {
		ExternalUser externalUser=new ExternalUser();
		externalUser.setId(1);
		externalUser.setUsername(name);
		return externalUser;
	}

}
